<?php 
	$ci= &get_instance();
	$tournament_id = $ci->input->post('tournament_id',0);
	$listEventCategory = $ci->event_category_tournament_entity->getArrayListOfEventCategory($tournament_id);
?>

<table>
<thead>
	<th><span class="bold" style="font-weight:bold;">Category</span></th>
</thead>	
<tbody>
	
		<tr>
			<td> 
				<ul id="sortable">
					<?php foreach( $listEventCategory as $item ): ?>
						<?php 
							$EVENT_CATEGORY = $ci->event_category_tournament_entity->init('id',$item->id);
						?>
						<?php if($EVENT_CATEGORY->getStatus() == 'living'):?>	
							<li class="ui-state-default" id="<?php echo $EVENT_CATEGORY->getId();?>"><?php echo $EVENT_CATEGORY->getCategory();?></li>
						<?php endif;?>
					<?php endforeach;?>
				</ul>	
			</td>
		</tr>
</tbody>
</table>
<input type="hidden" value="<?php echo $tournament_id?>" id="match_id_ordering_form" />
<div class="grid6"><input type="button" class="button" id="button_save_ordering" value="Update" /> <?php echo loader_image('id="loader_image_ordering" class="hidden"');?></div>
<div class="clrboth"></div>	